﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using BLL;
using DAL;

namespace SL
{
    public class WebRemoteService : IWebRemoteService
    {

        # region seat

        static SeatCTR _seatCtr = new SeatCTR();

        public IList<ScreenCast_Seat> GetScreenCastSeats(ScreenCast screenCast)
        {
            return _seatCtr.GetScreenCastSeats(screenCast);
        }

        # endregion

        # region cinema

        static CinemaCTR _cinemaCtr = new CinemaCTR();

        public IList<DAL.Cinema> GetCinemas()
        {
            return _cinemaCtr.GetCinemas();
        }

        # endregion

        # region movie hall

        static MovieHallCTR _movieHallCtr = new MovieHallCTR();

        public MovieHall GetMovieHall(int id)
        {
            return _movieHallCtr.GetMovieHall(id);
        }

        public MovieHall GetMovieHall(ScreenCast screenCast)
        {
            return _movieHallCtr.GetMovieHall(screenCast);
        }

        # endregion

        # region movie

        static MovieCTR _movieCtr = new MovieCTR();

        public IList<Movie> GetMovies()
        {
            return _movieCtr.GetMovies();
        }

        public IList<Movie> GetMovies(Cinema cinema)
        {
            return _movieCtr.GetMovies(cinema);
        }

        public Movie GetMovie(int id)
        {
            return _movieCtr.GetMovie(id);
        }

        # endregion

        # region screen cast

        static ScreenCastCTR _screenCastCtr = new ScreenCastCTR();

        public ScreenCast GetScreenCast(int id)
        {
            return _screenCastCtr.GetScreenCast(id);
        }
        public IList<ScreenCast> GetScreenCasts(Movie movie, Cinema cinema)
        {
            return _screenCastCtr.GetScreenCasts(movie, cinema);
        }

        # endregion
    }
}
